﻿namespace WeChat.Entity
{
    /// <summary>
    /// 角色菜单
    /// </summary>
    public class RolesMenu : BaseEntity<int>, IsActivate
    {
        /// <summary>
        /// 角色Id
        /// </summary>
        public int RolesId { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        public virtual Roles Roles { get; set; }

        /// <summary>
        /// 菜单Id
        /// </summary>
        public int MenuId { get; set; }

        /// <summary>
        /// 菜单
        /// </summary>
        public virtual WeChatMenu Menu { get; set; }

        /// <summary>
        /// 是否激活
        /// </summary>
        public bool IsActivate { get; set; }
    }
}
